#define _CRT_SECURE_NO_WARNINGS 1
#include "stack.h"
int main()
{
	ST st;
	stackInit(&st);
	stackPush(&st, 5);
	stackPush(&st, 4);
	stackPush(&st, 3);
	stackPush(&st, 2);
	stackPush(&st, 1);
	int count = 0;
	/*stackPop(&st);
	stackPop(&st);*/
	while (st.top>0)
	{
		stackPop(&st);
		count++;
		int ret = stackTop(&st);
		printf("%d ", ret);
		int ret2 = stackSize(&st);
		printf("\t%d ", ret2);
	}
	stackDestroy(&st);
	return 0;
}